import request from '@/utils/request'

// 查询供应商评审项目列表
export function listAssessProject(query) {
  return request({
    url: '/md/vendor/assessProject/list',
    method: 'get',
    params: query
  })
}

// 查询供应商评审项目详细
export function getAssessProject(id) {
  return request({
    url: '/md/vendor/assessProject/' + id,
    method: 'get'
  })
}

// 新增供应商评审项目
export function addAssessProject(data) {
  return request({
    url: '/md/vendor/assessProject',
    method: 'post',
    data: data
  })
}

// 修改供应商评审项目
export function updateAssessProject(data) {
  return request({
    url: '/md/vendor/assessProject',
    method: 'put',
    data: data
  })
}

// 删除供应商评审项目
export function delAssessProject(id) {
  return request({
    url: '/md/vendor/assessProject/' + id,
    method: 'delete'
  })
}
// 查询供应商考察待选项
export function getToBeSelected() {
  return request({
    url: '/md/vendor/assessProject/getToBeSelected',
    method: 'get'
  })
}
